﻿using CommunicationClass.Auxiliary;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static CommunicationClass.Model.SendReceiveEnum;

namespace CommunicationClass.Model
{
    /// <summary>
    /// 消息状态
    /// </summary>
    public enum MsgStateTypeEnum
    {
        未阅读=0,
        已阅读=1,
        已回复=2
    }
    /// <summary>
    /// 消息
    /// </summary>
    public class MessageModel
    {

        /// <summary>
        /// 消息ID
        /// </summary>
        public string MsgID { get; set; }
        /// <summary>
        /// 发送用户ID
        /// </summary>
        public string MsgSendUserID { get; set; }
        /// <summary>
        /// 发送用户名
        /// </summary>
        public string MsgSendUserName { get; set; }
        /// <summary>
        /// 接收用户ID
        /// </summary>
        public string MsgReceiveUserID { get; set; }
        /// <summary>
        /// 接收用户名
        /// </summary>
        public string MsgReceiveUserName { get; set; }
        /// <summary>
        /// 消息类型
        /// </summary>
        public MessageTypeModel MsgType { get; set; }
        /// <summary>
        /// 消息标题
        /// </summary>
        public string MsgTitle { get; set; }
        /// <summary>
        /// 发送时间
        /// </summary>
        public string MsgSendDate { get; set; }
        /// <summary>
        /// 回复消息ID
        /// </summary>
        public string MsgReceiveMessageID { get; set; }
        /// <summary>
        /// 消息内容
        /// </summary>
        public string MsgContent { get; set; }


        /// <summary>
        /// 其他内容
        /// </summary>
        public byte[] MsgOtherContent
        {
            get;set;
        }
    

        /// <summary>
        /// 消息状态
        /// </summary>
        public MsgStateTypeEnum MsgState { get; set; }
        /// <summary>
        /// 接收者设备
        /// </summary>
        public List<MsgLoginTypeEnum> MsgSendeQuipment { get; set; }
    }
}
